package com.wcm.system.repository.shehuikexueyuantushu;

import com.wcm.system.model.shehuikexueyuantushu.CmsChannelEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;


public interface ChannelRepository extends JpaRepository<CmsChannelEntity,Integer> {
      @Query("select c from CmsChannelEntity c where c.parentId = ?1")
      List<CmsChannelEntity > selectByParent(String word);
      @Query("select c from CmsChannelEntity c where c.parentId = ?1 and c.websiteId = ?2")
      List<CmsChannelEntity > selectByParent(String word,String condition);

}
